package cn.beforedark.yygh.cmn.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("service-cmn")
public interface DictFeignClient {

    /**
     * 根据 value 查询字典名称
     */
    @GetMapping("/admin/cmn/dict/getNameByValue/{value}")
    public String getNameByValue(@PathVariable("value") Long value);

    /**
     * 根据 dictCode 和 value 查询字典名称
     */
    @GetMapping("/admin/cmn/dict/getNameByDictCode/{dictCode}/{value}")
    public String getNameByDictCode(@PathVariable("dictCode") String dictCode,
                                    @PathVariable("value") Long value);


}
